#include <bits/stdc++.h>

using namespace std;

int a,b,c;
int cnt=0;
int main()
{
    cin>>a>>b>>c;
    for(int i=1;i<=329;i++){
        if(i*c>999)break;
        int hasfound[10]={0};
        hasfound[a*i%10]++;
        hasfound[a*i/10%10]++;
        hasfound[a*i/100%10]++;
        hasfound[b*i%10]++;
        hasfound[b*i/10%10]++;
        hasfound[b*i/100%10]++;
        hasfound[c*i%10]++;
        hasfound[c*i/10%10]++;
        hasfound[c*i/100%10]++;
        for(int j=1;j<=9;j++){
            if(hasfound[j]==0)
                break;
            else if(j == 9){
                cnt++;
                cout<<a*i<<' '<<b*i<<' '<<c*i<<endl;
            }
        }
    }
    if(cnt == 0){
        cout<<"No!!!"<<endl;
    }
}
